package com.common.cheng.util;

public class CheckStr {
    public static boolean checkNull(String str){
        if (str == null){
            return false;
        }
        str = str.replaceAll("[\\\\s\\\\n]","");
        return str.length() != 0;
    }


    public static Integer checkLen(String str){
        return str.replaceAll("[\\\\s\\\\n]","").length();
    }
}
